package com.xujie.sportsmeeting.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 历史最佳成绩VO
 */
@Data
@Schema(description = "历史最佳成绩信息")
public class HistoricalBestVO {

    @Schema(description = "年份")
    private Integer year;

    @Schema(description = "运动员姓名")
    private String athleteName;

    @Schema(description = "学号")
    private String studentNumber;

    @Schema(description = "院系")
    private String department;

    @Schema(description = "成绩值")
    private String scoreValue;

    @Schema(description = "格式化成绩")
    private String formattedScore;

    @Schema(description = "创造时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime recordTime;

    @Schema(description = "保持时长(天)")
    private Integer holdDays;

    @Schema(description = "是否当前记录")
    private Boolean isCurrentRecord;

    @Schema(description = "被超越时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime surpassedTime;

    @Schema(description = "备注")
    private String remarks;
}
